package com.xingmao.account.controller.music;

import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.common.log.annotation.Log;
import com.ruoyi.common.log.enums.BusinessType;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import com.xingmao.account.domain.AccountInfo;
import com.xingmao.account.service.music.IMusicInfoService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

import static com.ruoyi.common.core.utils.PageUtils.startPage;

//@Api(value = "音乐信息", description = "音乐信息相关的API")
@RestController
@RequestMapping("/music")
public class MusicInfoController extends BaseController {

    @Autowired
    private IMusicInfoService musicInfoService;

    /**
     * 音乐信息的列表
     */
//    @ApiOperation(value = "音乐信息的列表")
    @RequiresPermissions("music:info:list")
    @GetMapping("/list")
    public TableDataInfo list(AccountInfo accountInfo) {
        startPage();
        List<AccountInfo> list = musicInfoService.selectMusicInfoList(accountInfo);
        return getDataTable(list);
    }


    @RequiresPermissions("account:info:add")
    @Log(title = "账单信息", businessType = BusinessType.INSERT)
    @PostMapping
    public AjaxResult add() {
        return null;
//        return toAjax(musicInfoService.findMusic());
    }




}
